<?php get_header(); ?>
<?php get_sidebar(); ?>
<div class="main-content">
    <?php
    if(have_posts()) : while(have_posts()) : the_post(); ?>
    <div class="post" >
		<div class="post-inner-shadow"></div>
		<div class="post-content">
			 <a href="<?php the_permalink(); ?>">
            	<span class="item-thumbs">
            	<?php
					if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
						the_post_thumbnail( array(150,150) ); 
					}
					else {?>
					<img class="item-thumbs" src="<?php echo bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo bloginfo('stylesheet_directory'); ?>/images/no-thumbnail.png&h=150&w=150&zc=1&q=100" alt=""/>
				<?php } ?>
				</span>
            </a>
			<div class="content">
				<h3><a href="<?php the_permalink(); ?>" ><?php the_title(); ?></a></h3>
				<span class="post-info"><?php the_time('F j, Y'); ?> | <a href="<?php comments_link(); ?>"><?php comments_number(); ?></a></span>
				<p>
				<?php	
						echo  the_content(" ");
				?>
				</p>
				<span class="reading"><a href="<?php the_permalink(); ?>" >Xem tiếp...</a></span>
			</div>
		</div>
	</div>
    <?php endwhile; ?>
    <?php else : ?>
    <div class="post">
        <div class="post-inner-shadow"></div>
        <div class="post-content" style="margin-left:20px;">
             <h3><a href="#" style="font-size:16px;">Không tìm thấy kết quả phù hợp</a></h3>
        </div>
    </div>
    <?php endif; ?>
</div>
<?php get_footer(); ?>
</div>
